package com.usian.admin.controller.v1;

import com.usian.admin.feign.WemediaFeign;
import com.usian.admin.service.AdNewsAuthService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/api/v1/news_auth")
public class AdNewsAuthController {
    @Resource
    private AdNewsAuthService adNewsAuthService;
    @PostMapping("/list")
    public ResponseResult findPage(@RequestBody WmNewsPageReqDto wmNewsPageReqDto){
        return adNewsAuthService.findPage(wmNewsPageReqDto);
    }
}
